/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.service.impl.section;

import com.comac.ins.common.core.exception.base.BaseException;
import com.comac.ins.isfd.constant.enums.IsfdSectionTypeEnum;
import com.comac.ins.isfd.domain.bo.IsfdSectionBo;
import org.springframework.stereotype.Service;

/**
 * 型材库 抽象公用类型 实现类
 *
 * @author hxloongs
 * @date 2024-7-30
 */
@Service
public class IsfdSectionAllServiceImpl extends IsfdAbstractSectionService {
    @Override
    public String selectByType() {
        return IsfdSectionTypeEnum.ALL.getValue();
    }

    @Override
    public double[] calculate(IsfdSectionBo isfdSectionBo) {
        throw new BaseException("ALL类型不实现算法方法");
    }

    @Override
    public String generateSerialNumber(IsfdSectionBo bo) {
        throw new BaseException("ALL类型不实现型材编码生成");
    }

    @Override
    public Boolean save(IsfdSectionBo isfdSectionBo) {
        throw new BaseException("ALL类型不实现保存方法");
    }
}
